# window.cde ?= {}

# key:c meas:4/4 || p/2 c4/2 | d4/4 c4,e4,g4/8 [ a+3/4. c4/8 ] ( a3/8 | _/2 ) p/4 c/4 ||

class Opus
	constructor: (@scores) ->
		@words = @scores.split(" ")
		@aggrs = []
		for ind, word of @words
			aggr = new window.cde.Aggr(word)
			@aggrs.push aggr 
			console.log "Opus adds #{aggr.word}"

	trace: ->
		console.log "Opus scores: #{@scores}"
		for ind, aggr of @aggrs
			aggr.trace()
		true


window.cde.Opus = Opus